home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 19.zip
/
BS1 part 19
/
how to learn assembler.adf
/
CH4
/
4_1B.asm
< prev
next >
Wrap
Assembly Source File
|
1988-02-25
|
396b
|
15 lines
;(6.4B)
adding1:
clr.l D0 ; Erase D0
move.l #table,a0 ; Put the address of table in A0
move 0(a0),d0 ; Put first entry in D0
add 2(a0),d0 ; Add second entry
add 4(a0),d0 ; Add third entry
add 6(a0),d0 ; Add fourth entry
add 8(a0),d0 ; Add fifth entry
rts ; return
table: dc.w 2,4,6,8,10
end